<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>图书-作者作业练习</title>
</head>
<body>
    <h1>图书信息展示</h1>
    {{ bookdata }}
    <br>
    <ul>
    {% for book in bookdata %}
        <li>
            <a href="{{book.id}}" target="_blank">书籍名:{{ book.bookname }}, 价格:{{ book.price }}</a>
        </li>
    {% endfor %}
    </ul>
</body>
</html>